package lib.self.params;

import androidx.annotation.IntDef;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * description:页面状态
 * author: Steven Xiao
 * date: 2019-11-18
 */
public class ViewState {
    public static final int KViewStateNormal = 0;//正常
    public static final int KViewStateLoading = 1;//加载中
    public static final int KViewStateFailed = 2;//加载失败

    @IntDef(flag = true, value = {
            KViewStateNormal,
            KViewStateLoading,
            KViewStateFailed
    })

    @Retention(RetentionPolicy.SOURCE)
    public @interface IViewState {
    }
}
